﻿<%@ Page Language="C#" MasterPageFile="~/ClientSite.Master" AutoEventWireup="true"
    CodeBehind="ThanhToan.aspx.cs" Inherits="SES.CMS.ThanhToan" Title="Trang trí ngoại thất" %>

<%@ Register Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit" TagPrefix="cc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        #RegisterForm
        {
            border: 1px solid #ccc;
            padding: 15px 5px;
            margin: 5px -6px 5px 0px;
            height: 500px;
        }
        .done
        {
            background: url(                            "images/done.png" ) no-repeat;
            width: 101px;
            height: 31px;
            border: none;
        }
        .dTTTT
        {
            margin: 5px -6px 5px 0px;
            border: 1px solid #ccc;
            padding: 15px 5px;
        }
        .sp_info_detai
        {
            float: left;
            padding: 0 0 0 0px;
            width: 110px;
        }
        .button3
        {
            margin-left: 30px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="page_margins">
        <div class="page">
            <div class="subcolumns">
                <div class="c20l">
                </div>
                <div class="c80r">
                    <div class="shoppingcart">
                        <div class="lineBox clear">
                        </div>
                        <div class="textbox">
                            <div id="basket" class="basketitems">
                                <div class="listhead">
                                    <h2 class="borderbottom">
                                        Thông tin giỏ hàng</h2>
                                     <asp:GridView runat="server" ID="GridGioHang" AutoGenerateColumns="False" EmptyDataText="Không có dữ liệu !"
                                        AllowPaging="True" OnPageIndexChanging="GridGioHang_PageIndexChanging" OnRowCommand="GridGioHang_RowCommand"
                                        CellPadding="0" Width="99%" BackColor="White" BorderColor="#CC9966" BorderStyle="None" EnableViewState="false"
                                        BorderWidth="0" DataKeyNames="SanPhamID" OnDataBinding="GridGioHang_DataBinding"
                                        OnDataBound="GridGioHang_DataBound" CssClass="mGrid" PagerStyle-CssClass="pgr"
                                        AlternatingRowStyle-CssClass="alt" RowStyle-CssClass="rgr" HeaderStyle-CssClass="hgr">
                                        <RowStyle />
                                        <Columns>
                                            <asp:TemplateField Visible="false" HeaderText="<%$Resources:Language,rlblSTT %>"
                                                ItemStyle-Width="13px">
                                                <ItemTemplate>
                                                    <asp:Label Visible="false" runat="server" ID="lbSTT" Text="<%# Container.DataItemIndex + 1 %>">
                                                    </asp:Label>
                                                </ItemTemplate>
                                                <ItemStyle HorizontalAlign="Center" />
                                                <FooterTemplate>
                                                    Tổng tiền:
                                                </FooterTemplate>
                                                <FooterStyle BorderColor="White" Font-Bold="true" ForeColor="Red" />
                                            </asp:TemplateField>
                                            <asp:TemplateField  HeaderText='<%$Resources:Language,rlblImage%>' ItemStyle-Width="115px">
                                                <ItemTemplate>
                                                    <a class="fackybox" href='/Media/<%#Eval("HinhAnh")%>'>
                                                        <img src='/Media/<%#Eval("HinhAnh")%>' height="70px" width="90px" />
                                                    </a>
                                                </ItemTemplate>
                                                <ItemStyle HorizontalAlign="Center" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText='<%$Resources:Language,rlblProductName %>' ItemStyle-Width="180px">
                                                <ItemTemplate>
                                                    <asp:Label runat="server" ID="txtTen" Text='<%#(bool)(Session["lang"].ToString()=="VN")?DataBinder.Eval(Container.DataItem,"TenSanPham"):DataBinder.Eval(Container.DataItem,"ProductName") %>'>
                                                    </asp:Label>
                                                </ItemTemplate>
                                                <ItemStyle HorizontalAlign="Left" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText='<%$Resources:Language,rlblNumber%>' ItemStyle-Width="50px">
                                                <ItemTemplate>
                                                    <asp:TextBox runat="server" ReadOnly="true" AutoPostBack="true" ID="txtSL" CssClass="input-text-gridview"
                                                        Text='<%#DataBinder.Eval(Container.DataItem,"SoLuong") %>'>
                                                    </asp:TextBox>
                                                </ItemTemplate>
                                                <ItemStyle HorizontalAlign="Center" />
                                                <FooterStyle BorderColor="White" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText='<%$Resources:Language,rlblPrice%>' ItemStyle-HorizontalAlign="Center"
                                                ItemStyle-Width="90px">
                                                <ItemTemplate>
                                                    <asp:Label runat="server" ID="lbDG" Text='<%#(bool)(Session["lang"].ToString()=="VN")?DataBinder.Eval(Container.DataItem,"DonGia","{0:0,0 VNĐ}"):DataBinder.Eval(Container.DataItem,"Price","{0:0,0 USD}") %>'>
                                                    </asp:Label>
                                                </ItemTemplate>
                                                <FooterStyle BorderColor="White" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText='<%$Resources:Language,rlblSaleOff%>' ItemStyle-HorizontalAlign="Center"
                                                ItemStyle-Width="70px">
                                                <ItemTemplate>
                                                    <asp:Label runat="server" ID="lbDGG" Text='<%#Eval("GiamGia") +"%" %>'>
                                                    </asp:Label>
                                                </ItemTemplate>
                                                <FooterStyle BorderColor="White" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText='<%$Resources:Language,rlblToTal%>' ItemStyle-HorizontalAlign="Center"
                                                ItemStyle-Width="110px">
                                                <ItemTemplate>
                                                    <asp:Label runat="server" ID="lbThanhTien" Font-Bold="true" Text='<%#(bool)(Session["lang"].ToString()=="VN")?Eval("ThanhTien","{0:0,0}"):Eval("TotalMoney","{0:0,0}") %>'>
                                                    </asp:Label>
                                                </ItemTemplate>
                                                <FooterTemplate>
                                                    <asp:Label ID="lbTong" runat="server" Font-Bold="true" ForeColor="Red"></asp:Label>
                                                </FooterTemplate>
                                                <FooterStyle HorizontalAlign="Center" BorderColor="White" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText='<%$Resources:Language,rlblAction%>' Visible="false">
                                                <ItemTemplate>
                                                    <asp:ImageButton runat="server" ID="img_xoa" CommandName="xoa" OnClientClick="return confirm('Bạn có muốn loại bỏ sản phẩm này ra khỏi giỏ hàng?')"
                                                        CommandArgument='<%#DataBinder.Eval(Container.DataItem,"STT") %>' CssClass="button-gridview" />
                                                </ItemTemplate>
                                                <ItemStyle HorizontalAlign="Center" />
                                                <FooterStyle BorderColor="White" />
                                            </asp:TemplateField>
                                        </Columns>
                                        <FooterStyle BackColor="White" ForeColor="#000066" />
                                        <PagerStyle BackColor="#FFFFCC" ForeColor="#330099" />
                                        <SelectedRowStyle />
                                        <HeaderStyle />
                                    </asp:GridView>
                                    <br />
                                    <div class="dvTotalMoney">
                                        <asp:Label ID="lblSum" runat="server" Font-Size="15px"></asp:Label><br />
                                        <asp:Label ID="lbThanhTien" runat="server" Font-Size="15px"></asp:Label>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="textbox">
                            <div id="RegisterForm" style="height:540px;>
                                <h3 style="margin-bottom: 20px; margin-top: 0px; padding-top: 0px; text-align: left;">
                                    Thông tin thanh toán</h3>
                                <table class="pmb-table">
                                    <tbody>
                                        <tr>
                                            <td>
                                                <span>Họ tên<font color="red">*</font></span>
                                            </td>
                                            <td>
                                                <asp:TextBox runat="server" ID="txtHT" CssClass="inputLogin" type="text" TabIndex="1"></asp:TextBox>
                                            </td>
                                            <td>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtHT"
                                                    ErrorMessage="(*)"></asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                Địa chỉ
                                            </td>
                                            <td>
                                                <asp:TextBox runat="server" ID="txtDC" CssClass="inputLogin" type="text" TabIndex="2"></asp:TextBox>
                                            </td>
                                            <td>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtDC"
                                                    ErrorMessage="(*)"></asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                Số điện thoại
                                            </td>
                                            <td>
                                                <asp:TextBox runat="server" ID="txtsdt" CssClass="inputLogin" type="text" TabIndex="3"></asp:TextBox>
                                            </td>
                                            <td>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtsdt"
                                                    ErrorMessage="(*)"></asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                Email
                                            </td>
                                            <td>
                                                <asp:TextBox runat="server" ID="txtEmail" CssClass="inputLogin" type="text" TabIndex="4"></asp:TextBox>
                                            </td>
                                            <td>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtEmail"
                                                    ErrorMessage="(*)"></asp:RequiredFieldValidator>
                                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="Sai định dạng email"
                                                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ControlToValidate="txtEmail"></asp:RegularExpressionValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                Kiểu thanh toán
                                            </td>
                                            <td>
                                                <asp:DropDownList runat="server" ID="ddlHTTT" CssClass="ddl-input" AppendDataBoundItems="true">
                                                    <asp:ListItem Value="Chuyển khoản" Text="Chuyển khoản"></asp:ListItem>
                                                    <asp:ListItem Value="Thanh toán bằng tiền mặt" Text="Thanh toán bằng tiền mặt"></asp:ListItem>
                                                </asp:DropDownList>
                                            </td>
                                            <td>
                                              
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                Địa chỉ giao hàng
                                            </td>
                                            <td>
                                                <asp:TextBox runat="server" ID="txtDCGH" CssClass="inputLogin" type="text" TabIndex="6"></asp:TextBox>
                                            </td>
                                            <td>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="txtDCGH"
                                                    ErrorMessage="(*)"></asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                Ngày giao hàng
                                            </td>
                                            <td>
                                                <asp:TextBox runat="server" ID="txtNgayGiaoHang" CssClass="inputLogin" type="text"
                                                    TabIndex="8"></asp:TextBox>
                                            </td>
                                            <td>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                Ghi chú
                                            </td>
                                            <td>
                                                <asp:TextBox runat="server" ID="txtGC" CssClass="ip_info_result" type="text" TabIndex="7"
                                                    Height="100px" TextMode="MultiLine"></asp:TextBox>
                                            </td>
                                            <td>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                            </td>
                                            <td>
                                                <asp:Button ID="btn" runat="server" Text="Gửi đơn hàng" OnClick="btn_Click" CssClass="submit-button" />
                                                <asp:Button ID="btnHuy" runat="server" Text="Hủy" OnClick="btnHuy_Click" CssClass="submit-button" />
                                            </td>
                                            <td>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                            <cc:CalendarExtender runat="server" ID="celander1" TargetControlID="txtNgayGiaoHang"
                                Format="dd/MM/yyyy">
                            </cc:CalendarExtender>
                        </div>
                        <div class="textbox">
                            <div class="dTTTT">
                                <asp:Label runat="server" ID="lblThongTinThanhToan" Text=""></asp:Label>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div id="">
        <br />
        <div align="center" style="margin-top: 15px;" class="ltr">
        </div>
</asp:Content>
